package com.ntschy.bt.entity.dto.BtHelpDTO.AssignDTO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ntschy.bt.entity.valid.BtSupplyShopGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author CM
 */
@Data
@ToString(callSuper = true)
@ApiModel(description = "分配部门DTO")
public class BtHelpAssignAllocationDTO {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId
    @ApiModelProperty(value = "主键ID")
    @NotBlank(message = "主键ID不能为空")
    @Length(min = 36, max = 36, message = "供需超市ID长度不合法")
    private String id;

    /**
     * 分配人ID
     */
    @TableField("AssignUserID")
    @ApiModelProperty(value = "分配人ID")
    @NotNull(message = "分配人ID不能为空")
    private String assignUserId;

    /**
     * 分配人姓名
     */
    @TableField("AssignUserName")
    @ApiModelProperty(value = "分配人姓名")
    @NotNull(message = "分配人姓名不能为空")
    private String assignUserName;


    /**
     * 分配时间
     */
    @TableField("AssignTime")
    @ApiModelProperty(value = "分配时间")
    private String assignTime;

    /**
     * 分配部门
     */
    @TableField("AssignDeptID")
    @ApiModelProperty(value = "分配部门")
    @NotNull(message = "分配部门不能为空")
    private String assignDeptId;

}
